

        <g:set var="entityName" value="${message(code: 'categorys.label', default: 'Categorys')}" />
             <g:form action="save" method="post" >
             <input type="hidden" name="parent.id" value="${categorysInstance?.parent?.id}">
                <div class="dialog">
                    <table>
                        <tbody>
                            <g:if test="${categorysInstance?.parent}">
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="categorys.parent.label" default="parent" /></label>
                                </td>
                                <td valign="top" class="value">
                                    ${categorysInstance?.parent}
                                </td>
                            </tr>
                            </g:if>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="categorys.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: categorysInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" maxlength="250" value="${categorysInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description"><g:message code="categorys.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: categorysInstance, field: 'description', 'errors')}">
                                    <g:textArea name="description" cols="40" rows="5" value="${categorysInstance?.description}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sequencer"><g:message code="categorys.sequencer.label" default="Sequencer" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: categorysInstance, field: 'sequencer', 'errors')}">
                                    <g:textField name="sequencer" value="${fieldValue(bean: categorysInstance, field: 'sequencer')}" />
                                </td>
                            </tr>
                         
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>